#ifndef _Factory_Test_Entrance_H
#define _Factory_Test_Entrance_H	 
#include "at32f4xx.h"

extern u8 Factory_mode_task_pro(u8 *buffer_data_table);
extern u8 test_tx_temp_value;

//bit0
#define Set_RS485_ele_mat_test_result 0x00000001
#define Clr_RS485_ele_mat_test_result ~(0x00000001)
//bit1
#define Set_RS485_charger1_test_result 0x00000002
#define Clr_RS485_charger1_test_result ~(0x00000002)
//bit2
#define Set_RS485_charger2_test_result 0x00000004
#define Clr_RS485_charger2_test_result ~(0x00000004)
//bit3
#define Set_RS485_charger3_test_result 0x00000008
#define Clr_RS485_charger3_test_result ~(0x00000008)
//bit4
#define Set_CAN_bat1_test_result 0x00000010
#define Clr_CAN_bat1_test_result ~(0x00000010)
//bit5
#define Set_CAN_bat2_test_result 0x00000020
#define Clr_CAN_bat2_test_result ~(0x00000020)
//bit6
#define Set_CAN_bat3_test_result 0x00000040
#define Clr_CAN_bat3_test_result ~(0x00000040)
//bit7
#define Set_CAN_bat4_test_result 0x00000080
#define Clr_CAN_bat4_test_result ~(0x00000080)
//bit8
#define Set_tank1_lock_test_result 0x00000100
#define Clr_tank1_lock_test_result ~(0x00000100)
//bit9
#define Set_tank2_lock_test_result 0x00000200
#define Clr_tank2_lock_test_result ~(0x00000200)
//bit10
#define Set_tank3_lock_test_result 0x00000400
#define Clr_tank3_lock_test_result ~(0x00000400)
//bit11
#define Set_tank4_lock_test_result 0x00000800
#define Clr_tank4_lock_test_result ~(0x00000800)
//bit12
#define Set_temp1_test_result 0x00001000
#define Clr_temp1_test_result ~(0x00001000)
//bit13
#define Set_temp2_test_result 0x00002000
#define Clr_temp2_test_result ~(0x00002000)
//bit14
#define Set_temp3_test_result 0x00004000
#define Clr_temp3_test_result ~(0x00004000)
//bit15
#define Set_temp4_test_result 0x00008000
#define Clr_temp4_test_result ~(0x00008000)
//bit16
#define Set_temp5_test_result 0x00010000
#define Clr_temp5_test_result ~(0x00010000)
//bit17
#define Set_ble_test_result 0x00020000
#define Clr_ble_test_result ~(0x00020000)
//bit18
#define Set_GSM_test_result 0x00040000
#define Clr_GSM_test_result ~(0x00040000)
//bit19
#define Set_tank1_charging_test_result 0x00080000
#define Clr_tank1_charging_test_result ~(0x00080000)
//bit20
#define Set_tank2_charging_test_result 0x00100000
#define Clr_tank2_charging_test_result ~(0x00100000)
//bit21
#define Set_tank3_charging_test_result 0x00200000
#define Clr_tank3_charging_test_result ~(0x00200000)
//bit22
#define Set_tank4_charging_test_result 0x00400000
#define Clr_tank4_charging_test_result ~(0x00400000)
//bit23
#define Set_tank4_ch2_charging_test_result 0x00800000
#define Clr_tank4_ch2_charging_test_result ~(0x00800000)
//bit24
#define Set_Smoke_Sensor_test_result 0x01000000
#define Clr_Smoke_Sensor_test_result ~(0x01000000)
//bit25
#define Set_ch1_val_h_test_result 0x02000000
#define Clr_ch1_val_h_test_result ~(0x02000000)
//bit26
#define Set_ch2_val_h_test_result 0x04000000
#define Clr_ch2_val_h_test_result ~(0x04000000)
//bit27
#define Set_ch3_val_h_test_result 0x08000000
#define Clr_ch3_val_h_test_result ~(0x08000000)
//bit28
#define Set_ch4_val_h_test_result 0x10000000
#define Clr_ch4_val_h_test_result ~(0x10000000)
//bit29
#define Set_pluck_num_sign_sw_test_result 0x20000000
#define Clr_pluck_num_sign_sw_test_result ~(0x20000000)
//bit30
#define Set_TopGui_Door_test_result 0x40000000
#define Clr_TopGui_Door_test_result ~(0x40000000)
//bit31
#define Set_RearGui_Door_test_result 0x80000000
#define Clr_RearGui_Door_test_result ~(0x80000000)

#endif
